package com.xing.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

@Data
@TableName("live_attention")
public class LiveAttentionEntity {

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 关注者id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long attentionId;

    /**
     * 被关注者id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long attentionedId;

    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    private Integer delFlag;
}
